<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="chrome=1,IE=edge" />
    <title>西京文交所管理端</title>
    <link rel="stylesheet" href="../../static/iconfont/iconfont.css" >
    <link rel="stylesheet" href="../../static/frameset.css" >
</head>
<body>

    <div id="J_wrap" class="m_wrap m_box_v p_index none">
        <div class="m_top">
            <headers v-on:callback="headerHandle" :userobj.sync="userobj"></headers>
        </div>
        <div class="m_content m_flex1 m_box">
            <menunav index="finance" sub="rebate" :navobj.sync="userobj.group_acl"></menunav>
            <div class="container m_flex1">
                <ul class="breadcrumbs">
                    <li><span>财务管理</span>&gt;</li>
                    <li class="on">直签团队返佣</li>
                </ul>
                <div class="m_toolbar">
                    <a class="m_btn" href="rebate_back.html" v-if="userobj.group_acl.team.child.rebate.child.create.isOwn">佣金返还</a>
                    <a class="m_btn" href="rebate_log.html">返佣记录</a>
                </div>
                <div class="m_search">
                    <input type="text" class="m_input m_time" placeholder="选择月份" v-model="month" onfocus="WdatePicker({dateFmt:'yyyy-MM'})">
                    <select class="m_select" v-model="status">
                        <option value="" disabled selected hidden>类型</option>
                        <option value="">全部</option>
                        <option value="1">待返</option>
                        <option value="2">已返</option>
                    </select>
                    <button class="m_btn line" v-on:click="reSearch">查询</button>
                    <button class="m_btn line" v-on:click="reset">重置</button>
                </div>
                <table class="m_table">
                    <thead>
                        <tr>
                            <th>号段</th>
                            <th>负责人交易号</th>
                            <th>姓名</th>
                            <th>返佣账户</th>
                            <th>手续费</th>
                            <th>返佣比例</th>
                            <th>待返佣金</th>
                            <th>返佣状态</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr v-if="list.length < 1">
                            <td colspan="8">
                                <div class="tc">
                                    <template v-if="search">没有符合条件的内容</template>
                                    <template v-else>暂无数据</template>
                                </div>
                            </td>
                        </tr>
                        <tr v-for="item in list" v-if="list.length > 0">
                            <td>{{ item.team_sn }}</td>
                            <td>{{ item.no }}</td>
                            <td>{{ item.user_name }}</td>
                            <td>{{ item.card_no }}</td>
                            <td>{{ item.total_fee | markMoney }}</td>
                            <td>{{ item.r_benefit }}</td>
                            <td>{{ item.total_benefit | markMoney }}</td>
                            <td>{{ item.status == 0 ? '待返' : '已返' }}</td>
                        </tr>
                    </tbody>
                </table>
                <pages :cur.sync="cur" :all.sync="all" v-on:btn-click="getData"></pages>
            </div>
        </div>
    </div>


    <script src="../../js/plugins/zepto/zepto.min.js"></script>
    <script src="../../js/plugins/vue/vue.min.js"></script>
    <script src="../../js/plugins/seajs/sea.js"></script>
    <script src="../../js/plugins/seajs/seajs-text.js"></script>
    <script src="../../js/plugins/datePicker/WdatePicker.js"></script>

    <script>
        seajs.use( "../../js/page/finance/rebate" );
    </script>

</body>
</html>
